package net.aiion.weave.impl.bytecode.events;

import net.aiion.weave.spi.bytecode.BytecodeVisitor;
import net.aiion.weave.spi.bytecode.events.MethodEndBytecodeEvent;

public class MethodEndBytecodeEventImpl extends BytecodeEventImpl implements MethodEndBytecodeEvent
{
    private static final MethodEndBytecodeEvent INSTANCE = new MethodEndBytecodeEventImpl();

    public MethodEndBytecodeEventImpl() {
    }

    @Override
    public int getType() {
        return METHOD_END;
    }

    public static MethodEndBytecodeEvent getInstance() {
        return INSTANCE;
    }

    @Override
    public BytecodeVisitor acceptBytecodeVisitor(final BytecodeVisitor aBytecodeVisitor) {
        aBytecodeVisitor.asBytecodeMethodVisitor().visitMethodEnd(this);
        return null;
    }
}
